Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add find tag feature to FindCommand #59

Merged

Conversation

Dominic-Khoo
Copy link

Add functionality for users to filter patients based on medical conditions (labeled as tags) using FindCommand.

Users have to provide the appropriate prefix, e.g find t/diabetic to search for patients with the "diabetic" tag.

Copy link

@itsnotsherm itsnotsherm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, not much to comment on, neat implementation

+ "the specified keywords (case-insensitive) and displays them as a list with index numbers.\n"
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
+ "Example: " + COMMAND_WORD + " alice bob charlie";
+ "Example: " + COMMAND_WORD + " alice bob charlie (for names) OR find t/diabetic t/G6PD-Def";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there might be a better way to display this usage message but small issue

import seedu.address.commons.util.ToStringBuilder;
import seedu.address.logic.Messages;
import seedu.address.model.Model;
import seedu.address.model.person.NameContainsKeywordsPredicate;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side note I think predicates can have their own directory for organisation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted, will do in next iteration

@Dominic-Khoo Dominic-Khoo merged commit af8bff9 into AY2425S1-CS2103T-W11-1a:master Oct 22, 2024
3 checks passed
@Dominic-Khoo Dominic-Khoo added this to the v1.4 milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants